h1, h2, h3, h4, h5, h6, div, ul, li, ol, p{
  margin: 0;
  padding: 0;
}
.z-editor *{
  font-size: 14px;
}
.z-editor{
  width: 100%;
  border: 1px solid #AAA;
  position: relative;
  border-radius: 5px;
  padding-bottom: 2px;
  text-align:left;
  z-index: 1;
  top: -248px;
}
.z-editor.active{
  border-color: #66AFE9;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
}
.z-editor button, .z-editor input{
  outline: 0;
  padding: 8px;
  box-sizing: border-box;
}

/*全屏样式*/
.z-editor.full-screen{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  border: 0;
  outline: 0;
}
.z-editor.full-screen .z-editor-btns{
  height: 8% !important;
}
.z-editor.full-screen .z-editor-btn{
  height: 100% !important;
}
.z-editor-btn:hover{
  text-decoration: none;
}
.z-editor.full-screen .z-editor-edit{
  height: 92% !important;
}

/*工具栏*/
.z-editor-btns{
  width: 100%;
  background: #FFFFFF;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom: 1px solid #AAA;
  user-select: none;
}
.z-editor-btn{
  display: inline-block;
  height: 100%;
  padding: 0 12px;
  cursor: pointer;
  transition: background .5s;
  position: relative;
}
.z-editor-btn:hover{
  background: #CCC;
}
.z-editor-btn:hover .z-editor-tooltip{
  display: block;
}
.z-editor-tooltip{
  display: none;
  position: absolute;
  left: 3px;
  background: #333;
  color: #FFF;
  border-radius: 5px;
  padding: 0 5px;
  z-index: 9999;
  line-height: 30px;
  word-break: keep-all;
  font-size: 13px;
}

/*编辑区域*/
.z-editor-edit{
  padding: 10px;
  box-sizing: border-box;
  cursor: text;
  overflow: auto;
  background: #FFF;
}

/*主输入框*/
.z-editor-input{
  width: 100%;
  min-height: 30px;
  outline: 0;
  padding: 5px 0;
}

/*添加的元素*/
.z-element{
  display: block;
  position: relative;
  word-break: break-all;
  min-height: 30px;
}
.z-element:hover{
  background: #F8F8F8;
  border-radius: 5px;
}
.z-element-center{
  text-align: center;
}
a.z-element-center{
  display: block;
}
.z-title .z-element-content{
  font-weight: 700;
}
.z-title.H1 .z-element-content{
  font-size: 22px;
}
.z-title.H2 .z-element-content{
  font-size: 20px;
}
.z-title.H3 .z-element-content{
  font-size: 18px;
}
.z-title.H4 .z-element-content{
  font-size: 16px;
}
.z-link .z-element-content{
  color: #66AFE9;
  text-decoration: underline;
}
.z-image .z-element-content{
    text-align: center;
}
.z-image img{
  max-width: 100%;
}
.add-img-desc{
  display: block;
  text-align: center;
  font-size: 12px;
  min-height: 16px;
  font-style: italic;
}
.z-importantParagraph .z-element-content{
  font-weight: 700;
  font-style: italic;
}
.z-element-content{
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  box-sizing: border-box;
}
.z-element-close{
  position: absolute;
  width: 20px;
  height: 20px;
  background: #FFF;
  border-radius: 50%;
  right: 5px;
  top: 5px;
  cursor: pointer;
  display: none;
}
.z-element:hover .z-element-close{
  display: block;
}
.close-line{
  position: absolute;
  display: block;
  background: #555;
  transform: rotate(45deg);
}
.z-element-close:hover .close-line{
  background: #F00;
}
.close-line1{
  top: 2px;
  left: 50%;
  width: 1px;
  height: 16px;
}
 .close-line2{
  top: 50%;
  left: 2px;
  width: 16px;
  height: 1px;
 }

/*弹出层*/
.z-editor-layer{
  background: #FFF;
  box-sizing: border-box;
  position:  absolute;
  box-shadow: 2px 2px 3px 3px #999;
  border-radius: 5px;
  width: 60%;
  left: 20%;
  top: 30%;
  padding: 10px;
  animation: down-in .4s;
  text-align: center;
  z-index: 1;
}

/*标题弹出层*/
.z-editor-hsize, .hsize-close{
  display: block;
  background: #66AFE9;
  color: #FFF;
  padding: 5px 0;
  cursor: pointer;
}
.z-editor-hsize:nth-child(2n+1){
  background: #4DA2E8;
}
.z-editor-hsize.h1,
.z-editor-hsize.h2,
.z-editor-hsize.h3,
.z-editor-hsize.h4{
  font-size: 14px;
  color: #FFF;
  margin: 0;
  line-height: 1.5;
}
.z-editor-hsize.h1{
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.hsize-close{
  background: #B9C6CE;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

/*链接弹出层*/
.link-input{
  width: 100%;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border: 1px solid #CECECE;
}
.link-btn, .link-close{
  width: 50%;
  color: #FFF;
  cursor: pointer;
}
.link-btn{
  border-bottom-left-radius: 3px;
  background: #66AFE9;
  border: 1px solid #66AFE9;
}
.link-close{
  border-bottom-right-radius: 3px;
  background: #B9C6CE;
  border: 1px solid #B9C6CE;
}

/*图片弹出层*/
.editor-file-input{
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.img-open, .img-close{
  width: 100%;
  border: 0;
  color: #FFF;
}
.img-open{
  padding: 10px 0;
  background: #66AFE9;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.img-close{
  background: #B9C6CE;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  cursor: pointer;
}


@keyframes down-in {
  0%{
    transform: translateY(-80px);
    opacity: 0;
  }
  100%{
    transform: translateY(0);
    opacity: 1;
  }
}



/*渲染样式*/
[class^="z-render-"]{
  padding: 5px;
  word-break: break-all;
}
.z-render-title{
  font-weight: 700;
}
.z-render-title.H1{
  font-size: 28px;
}
.z-render-title.H2{
  font-size: 24px;
}
.z-render-title.H3{
  font-size: 20px;
}
.z-render-title.H4{
  font-size: 16px;
}
.z-render-importantParagraph{
  font-weight: 700;
}
.z-render-image{
  text-align: center;
}
.z-img-desc {
  display: block;
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

.icon-spinner2 {
  display: inline-block;
  animation: loading 1s infinite;
  position: relative;
  top: 1px;
}
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}



/*字体图标*/
@font-face {
  font-family: 'icomoon';
  src:  url('../zeditor-fonts/icomoon.eot?l2x54u');
  src:  url('../zeditor-fonts/icomoon.eot?l2x54u#iefix') format('embedded-opentype'),
        url('../zeditor-fonts/icomoon.ttf?l2x54u') format('truetype'),
        url('../zeditor-fonts/icomoon.woff?l2x54u') format('woff'),
        url('../zeditor-fonts/icomoon.svg?l2x54u#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-file-picture:before {
  content: "\e927";
}
.icon-spinner2:before {
  content: "\e97b";
}
.icon-enlarge:before {
  content: "\e989";
}
.icon-bin:before {
  content: "\e9ac";
}
.icon-list:before {
  content: "\e9ba";
}
.icon-link:before {
  content: "\e9cb";
}
.icon-font-size:before {
  content: "\ea61";
}
.icon-bold:before {
  content: "\ea62";
}
.icon-paragraph-center:before {
  content: "\ea78";
}
